package com.hdd.biz.painting.service;

import com.hdd.biz.painting.entity.UserFollow;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 用户关注表 服务类
 * </p>
 *
 * @author fang
 * @since 2021-03-18
 */
public interface UserFollowService extends IService<UserFollow> {


    boolean insertUserFollow(String userId,String follwUserId);

    void insert(String userId,String follwUserId);

    boolean isFollow(String userId,String follwUserId);

    boolean cancelFollow(String userId,String follwUserId);

    /**
     * 相互关注
     * @param userId
     * @param follwUserId
     * @return
     */
    boolean mutualFollow(String userId,String follwUserId);

    int fansCount(String userId,String follwUserId);

    int followsCount(String userId,String follwUserId);

    int findMyFollowCount(String userId);


    Integer find(String userId,String follwUserId);

    List<UserFollow> userIds(String follwUserId);




}
